package org.tabcap.workspace.gui.text.editor;

import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.JPanel;
import javax.swing.JScrollPane;

import org.tabcap.workspace.gui.text.TCTextPane;

public class TCEditor extends JPanel
{
	private static final long serialVersionUID = -119456594598973685L;
	
	protected TCTextPane textPane;
	public TCTextPane textPane() { return textPane; }

	public TCEditor()
	{
		setLayout(new BorderLayout());
		setMinimumSize(new Dimension(250, 170));
		
		textPane = new TCTextPane();
		JPanel wrapper = new JPanel(new BorderLayout());
		wrapper.add(textPane, BorderLayout.CENTER);
		JScrollPane scrollPane = new JScrollPane(wrapper);
		scrollPane.setPreferredSize(new Dimension(350, 300));
		scrollPane.getVerticalScrollBar().setUnitIncrement(50);
		add(scrollPane, BorderLayout.CENTER);
	}
}